.cloud-charts.G2LineBar {
  > div {
    height: 100%;

    &.widgets-legend-align-left {
      text-align: left;
    }
    &.widgets-legend-align-center {
      text-align: center;
    }
    &.widgets-legend-align-right {
      text-align: right;
    }
  }

  canvas {
    position: absolute;
    top: 0;
    left: 0;
  }
  // last-of-type 选择器配合css类会不生效，所以放在js逻辑中处理
  //.g2-legend:last-of-type {
  //  margin-right: 0 !important;
  //}

  .g2-legend-list-item:last-child {
    margin-right: 0 !important;
  }
}
